<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="shortcut icon" type="image/x-icon" href="res/image/logo.png" />
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <title>离散数学虚拟仿真实验</title>
</head>
<script type="text/javascript"></script>
<script src="js/jQuery.js"></script>
<script src="js/popper.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/echarts.js"></script>
<link rel="stylesheet" href="css/bootstrap.css"/>
<link rel="stylesheet" href="css/minTree.css"/>
<link rel="stylesheet" href="css/iconfont.css"/>

<body>
<div class="mainView">
    <nav class="navbar navbar-expand-md navbar-dark bg-dark">
        <a class="navbar-brand" href="./index.html" style="font-size: 1.2rem;">图论仿真实验</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample04" aria-controls="navbarsExample04" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarsExample04">
            <ul class="navbar-nav mr-auto" style="width: 100%;justify-content: flex-end;">
                <li class="nav-item">
                    <a class="nav-link" href="./index.html">首页 <span class="sr-only">(current)</span></a>
                </li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="dropdown04" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">欧拉图</a>
                    <div class="dropdown-menu" aria-labelledby="dropdown04">
                    <a class="dropdown-item" href="./EulerInfo.html">引入</a>
                    <a class="dropdown-item" href="./undirectedEuler.html">无向欧拉(回)路</a>
                    <a class="dropdown-item" href="./directedEuler.html">有向欧拉(回)路</a>
                    </div>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="./HamiltonianGraph.html">哈密尔顿图</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="./minTree.html">最小支撑树</a>
                </li>
                <li class="nav-item active">
                    <a class="nav-link" href="./shortestPath.html" tabindex="-1" aria-disabled="true">最短道路树</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="./optimalBinaryTree.html">最优二叉树</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" data-toggle="modal" data-target="#myModal">知识点</a>
                </li>
            </ul>
        </div>
    </nav>
    <div class="contentContainer">
        <div class="contentRight shadow col-sm-12 col-md-4 col-lg-6">
            <div class="echartsDiv" id="echartsDiv"></div>
        </div>
        <div class="contentLeft col-sm-12 col-md-7 col-lg-6" id="app">
            <div class="Action shadow">
                <button @click="algorithmRun" type="button" id="showProcess" class="btn btn-primary d-inline col-sm-12 col-md-6 col-lg-6" style="margin-top:10px;">Dijkstra算法逐步显示</button>
                <button @click="resetProcess" type="button" id="resetProcess" class="btn btn-primary d-inline col-sm-12 col-md-3 col-lg-3" style="margin-top:10px;">恢复过程</button>
            </div>
            <div class="DataShow">
                <h5>样图区</h5>
                <div class="exampleGraph">
                    <div class="exampleItem shadow" v-for="(item,index) in exampleGraph" @click="showGraph(index)">
                         <img class="graphImg" :src="item.imgUrl" alt="">
                         <div class="imgMask" ></div>
                         <p>{{item.name}}</p>
                    </div>
                </div>
            </div>
            
        </div>
    </div>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body">
                <img src="doc/幻灯片11.PNG" alt="" style="width:100%;">
                <img src="doc/幻灯片12.PNG" alt="" style="width:100%;">
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div>
<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="max-width:300px;margin-top:40vh;">
        <div class="modal-content">
            <div class="modal-body">
                <p style="text-align: center; margin-bottom: 0px;">{{message}}</p>
            </div>
            <div class="modal-footer" style="padding: 0px;">
                <button type="button" class="btn btn-default" data-dismiss="modal">确定</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div>
<script src="js/vue.js"></script>
<script type="module" src="js/shortestPath.js"></script>
</body>
</html>